package com.imufe.chemicalenterprisedangerwarning.entity.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 检查条目表
 * </p>
 *
 * @author BaiBan
 * @since 2022-10-05
 */
@Getter
@Setter
@TableName("check_item")
@ApiModel("检查条目表")
public class CheckItemPO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("条目出处来源")
    private String source;

    @ApiModelProperty("条目来源编号")
    private Integer entryNumber;

    @ApiModelProperty("条目内容")
    private String content;

    @ApiModelProperty("隐患分类;0-符合项;1-一般隐患;2-重大隐患;")
    private Integer hazardLevel;

    @ApiModelProperty("是否废弃;0-不废弃;1-废弃;")
    @TableField("is_discard")
    private Boolean discard;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}